﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Information/Information.master" AutoEventWireup="true" CodeBehind="ComputerEdit.aspx.cs" Inherits="Web.Information.WebForm6" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<li><a href="StuInformation.aspx">个人信息</a></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div style="padding:20px;">
        <asp:Label ID="Label_computerlist" runat="server" Text="计算机能力列表：" CssClass ="ContentLabel" Width="120px"></asp:Label>
        <asp:GridView ID="GridView_Computer" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="computer_level" HeaderText="计算机能力" />
                <asp:BoundField DataField="computer_time" HeaderText="获得时间" 
                    DataFormatString="{0:d}" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:ImageButton ID="GridViewButton_Edit" runat="server" 
                            OnClick="GridViewButton_Edit_Click" CommandArgument='<%# Eval("id") %>' 
                            ImageUrl="~/img/Control/Edit.gif" CausesValidation="False"/>
                        <asp:ImageButton ID="GridViewButton_Delete" runat="server" 
                            OnClick="GridViewButton_Delete_Click" CommandArgument='<%# Eval("id") %>'  
                            ImageUrl="~/img/Control/Delete.gif" CausesValidation="False"/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView></div>
        <br />
        <div style="border:solid 1px green">
        <asp:Label ID="Label_ComputerID" runat="server" Text="" Visible="false"></asp:Label>
        <table>
            <tr>
                <td>
                    <asp:Label ID="Label_computerlevel" runat="server" Text="计算机能力：" CssClass="ContentLabel"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropDownList_computerlevel" runat="server" 
                        onselectedindexchanged="DropDownList_computerlevel_SelectedIndexChanged" AutoPostBack="True" 
                         >
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Label_computertime" runat="server" Text="获得时间：" CssClass="ContentLabel"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_computertime" runat="server" CssClass="ContentTextBox" 
                        ToolTip="例：2008-10-10"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="TextBox_computertime">*</asp:RequiredFieldValidator>
                        </td>
                  <td>
                    <asp:RegularExpressionValidator
                        ID="RegularExpressionValidator1" runat="server" 
                          ControlToValidate="TextBox_computertime" 
                          ValidationExpression="^\d{4}-\d{1,2}-\d{1,2}$" 
                          ErrorMessage="时间输入格式不正确">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label_nolist" runat="server" Text="其他计算机能力：" CssClass="ContentLabel" Visible="false"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_nolist" runat="server" CssClass="ContentTextBox" Visible="false"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator_nolist" runat="server" 
                        ControlToValidate="TextBox_nolist" Enabled="false">*</asp:RequiredFieldValidator>
                </td>
                
                <td colspan="4">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                </td>
            </tr>
            <tr>
            <td>
                <asp:Label ID="Label_EditInformation1" runat="server" Text="所修改的记录信息：" CssClass="ContentLabel"></asp:Label></td>
            <td>
                <asp:Label ID="Label_EditInformation2" runat="server" Text="" CssClass="ContentLabel" Width="150px"></asp:Label></td>
            </tr>
        </table>
         <asp:ImageButton ID="ImageButton_Cancel" runat="server" 
            ImageUrl="~/img/Control/Cancel.gif" onclick="ImageButton_Cancel_Click" 
            CausesValidation="False" />
        <asp:ImageButton ID="ImageButton_Add" runat="server" 
            ImageUrl="~/img/Control/Add.gif" onclick="ImageButton_Add_Click" />
        <asp:ImageButton ID="ImageButton_Delete" runat="server" 
            ImageUrl="~/img/Control/Delete.gif" onclick="ImageButton_Delete_Click" 
            CausesValidation="False" />
        <asp:ImageButton ID="ImageButton_Edit" runat="server" 
            ImageUrl="~/img/Control/Edit.gif" onclick="ImageButton_Edit_Click" />
        <asp:Label ID="Label_result" runat="server" Text="" CssClass="Label_ReturnInfo"></asp:Label>
        
    </div>
</asp:Content>
